//
//  attentionView.m
//  YUXiu
//
//  Created by wang on 16/6/27.
//  Copyright © 2016年 Wang. All rights reserved.
//

#import "attentionView.h"

@implementation attentionView
// 50*50
-(id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        UIView *bg = [[UIView alloc]initWithFrame:krect(0, 0, self.golf_width, self.golf_height)];
        bg.backgroundColor = kBlackCOLOR;
        bg.alpha = 0.1;
        [self addSubview:bg];
        //
        _numLab = [[UILabel alloc]initWithFrame:krect(0, 0, self.golf_width, self.golf_height/2)];
        _numLab.font = Font(12);
        _numLab.textColor = kWhiteCOLOR;
        _numLab.textAlignment = NSTextAlignmentCenter;
        [self addSubview:_numLab];
        
        _lab = [[UILabel alloc]initWithFrame:krect(0, self.golf_height/2, self.golf_width, self.golf_height/2)];
        _lab.font = Font(12);
        _lab.textColor = kWhiteCOLOR;
        _lab.textAlignment = NSTextAlignmentCenter;

        [self addSubview:_lab];
        
        
    }
    
    
    return self;
}
-(void)layoutSubviews{
    _numLab.text = _numStr;
    _lab.text = _type;

}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
